<%-- 
    Document   : index.jsp
    Created on : 14.4.2010, 13:28:50
    Author     : Football-Statistics Team
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>

<%-- generate menu --%>
<c:if test="${empty xml_menu and empty error}">
    <jsp:forward page="/menu"/>
</c:if>

<f:setLocale value="${pageContext.request.locale}"/>
<f:setBundle basename="labelsBundle" />

<!DOCTYPE html>
<html>
    <head>
        <title><f:message key="project_title" /></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="css/main.css" media="screen" /> 
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
        <script type="text/javascript" src="js/superfish.js"></script>
        <script type="text/javascript" src="js/hoverIntent.js"></script>
    </head>
    <body>
        <div class="c">
            <header>
                <a id="logo" href="${pageContext.request.contextPath}/"></a>            
            </header>
            <c:if test="${not empty xml_menu}">            
                <nav>
                    <jsp:include page="menu.jsp"/>          
                </nav>
            </c:if>
            <c:if test="${not empty error}">
                <div class="error">
                    <c:out value="${error}"/>
                </div>
            </c:if>
        </div>
    </body>
</html>
